package com.cjm.one.service.impl;

import com.cjm.one.common.result.Result;
import com.cjm.one.goods.client.GoodsInfoClient;
import com.cjm.one.model.goods.vo.GoodsInfoVo;
import com.cjm.one.service.GoodsInfoService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class GoodsInfoServiceImpl implements GoodsInfoService {
    @Resource
    private GoodsInfoClient goodsInfoClient;
    @Override
    public Result<GoodsInfoVo> getById(Long id) {
        return goodsInfoClient.getByIdInfo(id);

    }
}
